package com.xc.quickstart.common.config;

import com.xc.quickstart.common.bean.ExceptionDelayQueueProcessor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class DelayQueueConfig {

    @Bean(initMethod = "consume")
    public ExceptionDelayQueueProcessor exceptionDelayQueueProcessor() {
        ExceptionDelayQueueProcessor exceptionDelayQueueProcessor = new ExceptionDelayQueueProcessor();
        return exceptionDelayQueueProcessor;
    }
}
